package com.loong.web.suppert.intercept.checkpoint;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 恶意请求处理器
 *
 * @author 张成轩
 */
public interface MaliciousHandler {

	/**
	 * 黑名单访问处理
	 * 
	 * @param request 请求
	 * @param response 响应
	 * @throws IOException IO异常
	 */
	public void ip(HttpServletRequest request, HttpServletResponse response) throws IOException;

	/**
	 * 恶意访问路径处理
	 * 
	 * @param request 请求
	 * @param response 响应
	 * @throws IOException IO异常
	 */
	public void url(HttpServletRequest request, HttpServletResponse response) throws IOException;

	/**
	 * 恶意参数处理
	 * 
	 * @param request 请求
	 * @param response 响应
	 * @throws IOException IO异常
	 */
	public void param(HttpServletRequest request, HttpServletResponse response) throws IOException;
}
